/*
 * @Author: AskMeWhy
 * @Date: 2020-09-25 17:11:35
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2021-01-22 16:47:50
 */
const API_CONFIG = [
    {
        name: "list",
        namespace: "systemManage/roleManage",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/list",
        desc: "角色管理-角色列表"
    },
    {
        name: "add",
        namespace: "systemManage/roleManage",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/add",
        desc: "角色管理-新增角色"
    },
    {
        name: "delete",
        namespace: "systemManage/roleManage",
        method: "post",
        // headers: {
        //     "Content-Type": "application/json"
        // },
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/del",
        desc: "角色管理-删除角色"
    },
    {
        name: "query",
        namespace: "systemManage/roleManage",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/getRoleMenuTree",
        desc: "角色管理-查询角色"
    },
    {
        name: "update",
        namespace: "systemManage/roleManage",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/edit",
        desc: "角色管理-更新角色"
    },
    {
        name: "menuList",
        namespace: "systemManage/roleManage",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/menu/tree",
        desc: "角色管理-权限菜单列表"
    },
    {
        name: "authMember",
        namespace: "systemManage/roleManage",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/user/listByRoleId",
        desc: "角色管理-角色成员"
    },
    {
        name: "updateRole",
        namespace: "systemManage/roleManage",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        setCommonParam: true,
        params: {},
        mock: {
            open: false
        },
        path: "/management/role/editRoleMenu",
        desc: "角色管理-更新权限"
    }
];
export default API_CONFIG;
